import Vue from "vue";
import VueRouter from "vue-router";
import HomeView from "../docs/home.md";

Vue.use(VueRouter);

export const routes = [
  {
    path: "/",
    name: "home",
    component: HomeView,
    meta: {
      docName: "安装",
    },
  },
  {
    path: "/base/bar",
    name: "base",
    component: () =>
      import(/* webpackChunkName: "about" */ "../docs/base/bar.md"),
    meta: { title: "base", docName: "Bar 柱状图" },
  },
];

const router = new VueRouter({
  routes,
});

export default router;
